package com.nuts.core.bean.request;

import javax.validation.constraints.NotNull;

import com.nuts.base.validation.SelectTwo;
import com.nuts.base.bean.request.BaseReqVO;
import com.nuts.base.core.ConfigEnvironment;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 维度数据范围VO
 * 
 * @author 许自辉
 * @date 2017年8月16日 下午3:35:08
 */
@Getter
@Setter
@ToString
@ApiModel("维度数据范围请求")
public class DimensionItemReqVO extends BaseReqVO {

	@ApiModelProperty(value = "应用名", hidden = true)
	private String appName;

	private Integer notId;

	@NotNull
	@ApiModelProperty("维度数据范围编码")
	private String code;

	@NotNull
	@ApiModelProperty("维度数据范围名称")
	private String name;

	@NotNull
	@ApiModelProperty("数据范围id")
	private Integer dimensionId;

	@NotNull(groups = { SelectTwo.class })
	@ApiModelProperty("员工工号")
	private String workId;

	@NotNull(groups = { SelectTwo.class })
	@ApiModelProperty("角色id")
	private Integer roleId;

	public String getAppName() {
		return ConfigEnvironment.getAppName();
	}

}
